package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("ToskJob")
@Slf4j
public class ToskJob {

    @Autowired
    private IContractService contractService;
    public void execute() {

        log.info("合同状态更改");
        contractService.updateStatus();

    }
}
